home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17439 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: babel.ho.att.com!joe
  2. From: joe@sanskrit.ho.att.com (Joe Orost)
  3. Newsgroups: comp.lang.c++
  4. Subject: [HELP!] What's wrong with this code (anachronism)?
  5. Date: 15 Apr 96 23:36:22 GMT
  6. Organization: AT&T Bell Laboratories, Columbus, Ohio
  7. Message-ID: <joe.829611382@babel.ho.att.com>
  8. NNTP-Posting-Host: sanskrit.ho.att.com
  9.  
  10. "StmtDG.h", line 9: Warning (Anachronism): StmtDG::SDG_Node is not
  11. accessible from StmtDG::SDG_Edge.
  12. "StmtDG.h", line 9: Note: Type "CC -migration" for more on anachronisms.
  13. "StmtDG.h", line 14: Warning (Anachronism): StmtDG::SDG_Edge is not
  14. accessible from StmtDG::SDG_Node.
  15. "StmtDG.h", line 32: Warning (Anachronism): StmtDG::SDG_Node is not
  16. accessible from StmtDG_Tsort::SDG_TNode.
  17.  
  18.      1  #include "D.h"
  19.      2
  20.      3  class StmtDG {
  21.      4  protected:
  22.      5          class SDG_Node;
  23.      6          class SDG_Edge {
  24.      7          public:
  25.      8                  SDG_Edge *next;
  26.      9                  StmtDG::SDG_Node *edge;
  27.     10          };
  28.     11          class SDG_Node {
  29.     12          public:
  30.     13                  SDG_Node *next;
  31.     14                  StmtDG::SDG_Edge *edges;
  32.     15                  AST_INDEX node;
  33.     16                  int indegree;
  34.     17          };
  35.     18          SDG_Node *first;
  36.     19          int nodes;
  37.     20  public:
  38.     21          friend class StmtDG_Tsort;
  39.     22          StmtDG();
  40.     23          ~StmtDG();
  41.     24          void add(AST_INDEX node);
  42.     25          void add_edge(AST_INDEX source, AST_INDEX sink);
  43.     26  };
  44.     27
  45.     28  class StmtDG_Tsort {
  46.     29          class SDG_TNode {
  47.     30          public:
  48.     31                  SDG_TNode *next;
  49.     32                  StmtDG::SDG_Node *node;
  50.     33          };
  51.     34          SDG_TNode *head, *cur;
  52.     35  public:
  53.     36          StmtDG_Tsort(StmtDG SDG);
  54.     37          ~StmtDG_Tsort();
  55.     38          AST_INDEX cur_stmt();
  56.     39          void operator ++();
  57.     40  };
  58.  
  59. Please send email.
  60.  
  61.                                 regards,
  62.                                 joe
  63.  
  64. --
  65. Full Name:    Joseph M. Orost
  66. EMail:        Joseph.Orost@att.com, attmail!orost
  67. Organization: AT&T Labs: Technology Realization
  68. SurfaceMail:  943 Holmdel Rd.; Cruz Plaza; Holmdel, NJ 07733
  69. Phone:        +1 (908) 946-1115
  70. Fax:          +1 (908) 946-9146
  71.